import "dotenv/config";
import { mkdir } from "fs";
import { writeFileByType } from "./utils/util";
const dirPath = process.env.ICAN_IGNORE_DIR
if (dirPath) {
  mkdir(dirPath, (err) => {
    if (err) {
      console.log('ignore/目录已经创建')
    } else {
      console.log('创建目录成功!');
      mkdir(dirPath + 'juejin/', (err) => {
        if (err) {
          console.log('juejin/目录已经创建')
        }
        console.log('juejin/目录创建成功!')
        writeFileByType('zentao_cookie', 'rfkgdfolrccnmlm7qs07h7qdi3')
      })
    }
  })
}